<?php /* Smarty version 2.6.26, created on 2011-06-10 14:42:52
         compiled from diary.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->_tpl_vars['blog']['blog_title']; ?>
</title>
<link type="text/css" href="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/css/base.css" rel="stylesheet" />
<link type="text/css" href="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/css/common.css" rel="stylesheet" />
<link type="text/css" href="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/css/page.css" rel="stylesheet" />
</head>

<body>
<div class="wrap">
  <!-- 头部 -->
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- /头部 --> 
  <div class="main">
     <div class="mainContent">
         <div class="title-long"><h3 class="ml20 ffs f18 fb">日志</h3></div>
         <div class="sidebar25 ml30 f13">
         <?php if ($this->_tpl_vars['logined']): ?>
            <a href="blogs.php?style=writediary"><input name="" type="button" value="发表日志" class="buttonLong" /></a>
            <p><a href="#">添加分类</a>|<a href="#">管理分类</a></p>
         <?php endif; ?>
            <ul class="f16 lh30 mt10">
               <li class="img01-style"><a href="#">所有日志</a></li>
               <li class="shape-style ml10"><a href="#">默认分类（7）</a></li>
               <li class="img02-style"><a href="#">日志归档</a></li>
            </ul>            
         </div>
         <div class="content65 f14">
            <div class="diaryContent diary-list">
            <h4><?php echo $this->_tpl_vars['blog']['blog_title']; ?>
</h4>
            <p>默认分类&nbsp;<?php echo $this->_tpl_vars['blog']['blog_pbtime']; ?>
&nbsp;阅读<?php echo $this->_tpl_vars['blog']['read_num']; ?>
&nbsp;评论<?php echo $this->_tpl_vars['blog']['count_comment']; ?>
<span class="fr"><img src="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/images/icon01.jpg"width=13 height=13/><a href="#">订阅</a></span></p>
            <p><?php echo $this->_tpl_vars['blog']['blog_content']; ?>
</p>
            </div>
           <div class="mt30">
           <h4 class="f12">评论：</h4>
           <div class="mt5">
           <?php if ($this->_tpl_vars['me']['profile_image_url']): ?><img src="<?php echo $this->_tpl_vars['me']['profile_image_url']; ?>
" /><?php else: ?><img src="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/images/icon05.jpg" /><?php endif; ?>
           <form action="" method="POST" class="fr">
           <p>昵称：<input name="cmt_user" type="text" class="short" value="<?php if ($this->_tpl_vars['me']['name']): ?><?php echo $this->_tpl_vars['me']['name']; ?>
<?php else: ?>游客<?php endif; ?>"/></p>
           
           <!-- 判断是否用新浪微博登录，若未登录，则显示登录按钮 -->
           <?php if (! $this->_tpl_vars['sinalogined']): ?><a href="<?php echo $this->_tpl_vars['aurl']; ?>
"><img src="<?php echo $this->_tpl_vars['url_path']; ?>
/templates/images/240.png"  alt="" /></a>
           <?php else: ?>
           <input name="updatetoweibo" type="checkbox" value="true"/>
           <input type="button" class="buttonSinaBG" value=""/>
           <?php endif; ?>
           <!-- /判断是否用新浪微博登录，若未登录，则显示登录按钮 -->
           
           <textarea name="comment" cols="" rows="" class="diaryComment"></textarea><br>
           <input name="" type="submit" value="确定" class="buttonShort mt10" /></form></div>
           </div>
           <div class="cb pt20">
              <ul class="message f14">
              <?php unset($this->_sections['comment']);
$this->_sections['comment']['name'] = 'comment';
$this->_sections['comment']['loop'] = is_array($_loop=$this->_tpl_vars['comments']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['comment']['show'] = true;
$this->_sections['comment']['max'] = $this->_sections['comment']['loop'];
$this->_sections['comment']['step'] = 1;
$this->_sections['comment']['start'] = $this->_sections['comment']['step'] > 0 ? 0 : $this->_sections['comment']['loop']-1;
if ($this->_sections['comment']['show']) {
    $this->_sections['comment']['total'] = $this->_sections['comment']['loop'];
    if ($this->_sections['comment']['total'] == 0)
        $this->_sections['comment']['show'] = false;
} else
    $this->_sections['comment']['total'] = 0;
if ($this->_sections['comment']['show']):

            for ($this->_sections['comment']['index'] = $this->_sections['comment']['start'], $this->_sections['comment']['iteration'] = 1;
                 $this->_sections['comment']['iteration'] <= $this->_sections['comment']['total'];
                 $this->_sections['comment']['index'] += $this->_sections['comment']['step'], $this->_sections['comment']['iteration']++):
$this->_sections['comment']['rownum'] = $this->_sections['comment']['iteration'];
$this->_sections['comment']['index_prev'] = $this->_sections['comment']['index'] - $this->_sections['comment']['step'];
$this->_sections['comment']['index_next'] = $this->_sections['comment']['index'] + $this->_sections['comment']['step'];
$this->_sections['comment']['first']      = ($this->_sections['comment']['iteration'] == 1);
$this->_sections['comment']['last']       = ($this->_sections['comment']['iteration'] == $this->_sections['comment']['total']);
?>
                  <li>
                      <img src="<?php echo $this->_tpl_vars['comments'][$this->_sections['comment']['index']]['cmt_pic']; ?>
" class="fl"/>
                      <div class="fl ml10 w80b">
                      <h4 class="fl"><?php echo $this->_tpl_vars['comments'][$this->_sections['comment']['index']]['cmt_user']; ?>
</h4><span class="fr"><?php echo $this->_tpl_vars['comments'][$this->_sections['comment']['index']]['cmt_time']; ?>
</span>
                      <p class="cr ml20 lh30"><?php echo $this->_tpl_vars['comments'][$this->_sections['comment']['index']]['cmt_content']; ?>
</p>
                      <p class="lh30 tr">IP:<?php echo $this->_tpl_vars['comments'][$this->_sections['comment']['index']]['cmt_IP']; ?>
</p>
                      <p class="lh30"><a href="#">回复</a></p>        
                      </div>
                      <p class="cl"></p>
                  </li>
              <?php endfor; endif; ?>
              </ul>
              <p class="mt15 tr"><?php echo $this->_tpl_vars['pagenav']; ?>
</p>
           </div>
         </div>
       </div>
  <!-- 导航 -->
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "nav.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- /导航 -->
  </div>
  <!-- 页脚 -->
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- /页脚 --> 
</div>
</body>
</html>